html,
body {
  margin: 0;
  padding: 0;
}
body{
  background-color: #ECF0F5;
  color: #38454A;
  font-size: 14px;
  line-height: 1.4;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Segoe UI", Roboto, "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}
.main-container {
  max-width: 960px;
  margin: 0 auto;
}
.main-footer {
  min-height: 100px;
  margin-top: 50px;
  background-color: #24292E;
  color: #F7F7F7;
  padding: 15px;
}
.text-center {
  text-align: center;
}

.m-box{
  background-color: #fff;
  padding: 15px;
}

.navbar{
  background-color: #24292E;
  color: #F7F7F7;
  box-sizing: border-box;
  padding: 0px 15px;
  line-height: 60px;
  .logo {
    width: 150px;
    vertical-align: middle;
    margin-top: -2px;
  }
  .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    li {
      display: inline-block;
      margin: 0 15px;
    }
    a {
      text-decoration: none;
      color: inherit;
      opacity: 0.8;
      &:hover {
        opacity: 1;
      }
    }
  }
  .nav-left{
    float: left;
  }
  .nav-right{
    float: right;
  }
  &::before,
  &::after {
    content: "";
    display: table;
    clear: both;
  }
}

.post-list {
  .post-item {
    background-color: #fff;
    padding: 15px;
    border-bottom: solid 1px #E6ECF0;
    &:hover {
      background-color: #F5F8FA;
    }
    .avator {
      width: 32px;
      height: 32px;
      border-radius: 5px;
      vertical-align: middle;
      margin-right: 10px;
    }
    .post-url {
      text-decoration: none;
      color: #38454A;
    }
    .post-title {
      font-size: 18px;
      font-weight: 200;
      display: inline-block;
      &:hover{
        text-decoration: underline;
      }
    }
    .post-user-name {
      color: inherit;
      text-decoration: none;
      font-weight: bold;
      margin-right: 10px;
      &:hover {
        color: #1DA1F2;
        text-decoration: underline;
      }
    }
    .post-time {
      margin-right: 10px;
      opacity: 0.5;
      &:hover {
        opacity: 1;
      }
    }
    .post-control {
      margin-bottom: -15px;
      .post-stat-view,
      .post-stat-comment {
        .fa {
          margin-right: 5px;
        }
        display: inline-block;
        color: #657786;
        padding: 5px 10px;
        cursor: default;
        &:hover {
          color: #1DA1F2;
        }
      }
    }
  }
}
.post-detail {
  background-color: #fff;
  padding: 30px;
  img {
    max-width: 100%;
  }
}

@import url("container.less");
